using System;
using System.Collections;
using Slaks.DocumentSerialization;
using Slaks.DocumentSerialization.TermIdInfo;

namespace TestXmlSerialization
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	public class Class1
	{
		public static void Main()
		{

            PorterStemmerAlgorithm.PorterStemmer stemmer = new PorterStemmerAlgorithm.PorterStemmer();
            String newTerm = stemmer.StemTerm("warning");
            Console.WriteLine(newTerm);

			TermIdInfo t = new TermIdInfo();
			TermIdInfoMap h =  new TermIdInfoMap();
			long l = 10;
			h.Add("slava",new TermIdInfoElement("slava",1,23));
			l = 20;
			h.Add("kaiser",new TermIdInfoElement("kaiser",l,12));

			t.TermIdDictionary = h;

			t.XmlWrite(@"c:\termIdInfo.xml");
		}
	}
}
